<?php
/*
 * @Date: 2025-07-11 17:25:51
 * @LastEditors: 贾二小 erxiao.jia@outlook.com
 * @LastEditTime: 2025-08-09 01:28:10
 * @FilePath: /admin-api/app/Http/Controllers/Controller.php
 */

namespace App\Http\Controllers;

abstract class Controller
{
    protected function success(string $message = '', $data = [], $code = 0)
    {
        return [
            'message' => $message,
            'code' => $code,
            'data' => $data,
            'success' => true,
        ];
    }
}
